<ul class="forum_topics_list">
{% for topic in topics %}
    <li class="topic">
        <a class="subject" href="{{ forum_urlForTopic(topic) }}">{{ topic.subject }}</a>
        <div class="metas">
            <span class="creation">Le <span class="createdAt">{{ topic.createdAt|date("d/m/Y") }}</span> par</span>
            <span class="author">{{ topic.authorName }}</span>
            | <span class="numPosts">{{ topic.numPosts }} {{ topic.numPosts > 1 ? 'réponses' : 'réponse' }}</span>
            | <a class="category" href="{{ forum_urlForCategory(topic.category) }}">{{ topic.category.name }}</a>
        </div>
    </li>
{% endfor %}
</ul>

{% if category %}
{{ pagerfanta(topics, 'default', pagerOptions|merge({'proximity': 3})) }}
{% endif %}
